xen/arm: Move VABORT_GEN_BY_GUEST to traps.h and turned into inline
authorJulien Grall <julien.grall@arm.com>
Wed, 31 Oct 2018 18:12:58 +0000 (18:12 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 9 Nov 2018 18:14:24 +0000 (10:14 -0800)
commitda35d9e3f1ee8d41b1162bfdc515ded2b88bdece
treed0d355533211fde15f6fc449d95baf96427f2e83
parentf6642a767912a391a3fa626c9ea84822ab65b225
xen/arm: Move VABORT_GEN_BY_GUEST to traps.h and turned into inline

The macro VABORT_GEN_BY_GUEST is only used by the trap code. So move it
to trap.h.

While moving the code, convert is to a static inline to allow typecheck.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Andrii Anisov <andrii_anisov@epam.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/processor.h
xen/include/asm-arm/traps.h